const crypto = require('crypto');

// console.log(crypto.getHashes())

//数据加密 password

// console.log(text)

module.exports = str =>{
    return crypto.createHmac('sha256', '555')
    .update(str)
    .digest('hex');
}